Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

fix build html5/hybrid bug for shared mojits #813

Merged
merged 1 commit into from
Nov 30, 2012

Conversation

isao
Copy link
Contributor

@isao isao commented Nov 30, 2012

this change skips processing client mojit metadata without a url (url metadata for shared/app-level mojits is in a special mojit named "Shared", not via the mojit it was packaged in.). It fixes the mojito build failure for a app with shared resources; i.e. mojito build in ./tests/func/applications/frameworkapp/common before this patch threw an error like this:

error: (outputhandler.server): { [Error: Cannot expand instance [tunnelundefined.definition], or instance.controller is undefined] code: 500 }

url metadata for shared/app-level mojits is in a
special mojit named "Shared", not via the mojit it
was packaged in.
@isao
Copy link
Contributor Author

isao commented Nov 30, 2012

Travis: "Executing your script (./travis/script.sh) took longer than 30 minutes and was terminated."

"app-level" (aka shared) mojits get uris via a special RS mojit named
"Shared", not via the mojit they came in */
if (mojit.hasOwnProperty('url')) {
uri = mojit.url + '/definition.json';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general I prefer "builders" so we avoid the assumption about whether there's a / needed or not. But +1 :).

@idearat
Copy link
Contributor

idearat commented Nov 30, 2012

+1

isao pushed a commit that referenced this pull request Nov 30, 2012
fix build html5/hybrid bug for shared mojits
@isao isao merged commit c951b7f into YahooArchive:develop Nov 30, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants